app.service("specificationService",function($http){

    //1.查询所有规格
    this.findAll=()=>{
        return $http.get("../specification/list.do");
    }

    //2.保存规格
    this.save=(url,entity)=>{
        return $http.post(url,entity);
    }

    //3.根据规格id查询规格及规格选项
    this.findOne=(specId)=>{
        return $http.get("../specification/findOne.do?id="+specId);
    }
    //4.删除规格
    this.del=(selectIds)=>{
        return $http.get("../specification/delete.do?ids="+selectIds);
    }
    //5.查询规格列表（List<Map>）
    this.findSpecList=()=>{
        return $http.get("../specification/findSpecList.do");
    }
})